<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>留言本</title>
  <link rel="stylesheet" href="/public/css/bootstrap.css">
  <link rel="stylesheet" href="/public/js/main.js">
</head>

<body>
  <div class="header container">
    <div class="page-header">
      <h1>Example page header <small>Subtext for header</small></h1>
      <a class="btn btn-success" href="/post">发表留言</a>
    </div>
  </div>
  <div class="comments container">
    <ul class="list-group">
      {{each comments}}
      <li class="list-group-item">
        {{ $value.name }}：{{ $value.message }} 
        <span class="pull-right">{{ $value.datetime }}
          <a class="btn btn-link" href="/index/delete?id={{$value.id}}">删除</a>
        </span>

      </li>
      {{/each}}
    </ul>
  </div>
</body>

</html>
